
<% if @best_selling.present? %>

  <section class="best_goods">
    <%= render partial: 'part_title', locals: { icon: nil, href: nil, title: '畅销单品', summary: 'BEST-SELLING GOODS' } %>

    <div class="list">
      <% @best_selling.each do |product| %>
        <div class="item">
          <%= image_tag 'tuijian.png', class: "tuijian" %>
          <a href="<%= product_path product %>">
            <%= product_default_img product, "item-img" %>
          </a>
          <div class="item-info">
            <h1 class="row">
              <div class="pull-right text-mid-line">￥<%= product.price %></div>
              <div class="pull-left text-red">￥<%= product.msrp %></div>
            </h1>
            <p><%= product.title %></p>
          </div>
        </div>
      <% end %>
    </div>
  </section>

<% end %>
